<template>
  <div>
    <h1>登录成功了, 哈哈哈哈哈哈^_^</h1>

    <button type="button" @click="testGetRequest">请求数据</button>
    <div>
      <h3 v-for="(value, key, index) in resData">{{ index }} --- {{ key }} --- {{ value }}</h3>
    </div>

  </div>
</template>

<script>
  export default {
    name: 'AfterLogin',
    data() {
      return {
        resData: {},
        showInfo: true
      }
    },
    methods: {
      testGetRequest() {
        let _this = this;
        this.showInfo = true;
        let url = "user/getOtherInfo";
        _this.getRequest(url).then(res => {
          console.log(res);
          if (res.code === 0) {
            this.resData = res.data;
            console.log(this.resData);
          }
        });

      }
    }
  }
</script>

<style scoped>

</style>
